import React, { FC } from 'react';
import { Upload } from 'choerodon-ui/pro';

export interface UploadBasicProps {}

const UploadBasic: FC<UploadBasicProps> = () => {
  const uploadProps = {
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76',
    multiple: true,
    accept: ['.deb', '.txt', '.pdf', 'image/*'],
    uploadImmediately: true,
    showUploadList: false,
  };
  return <Upload {...uploadProps} />;
};

export default UploadBasic;
